package com.example.mylogin.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

/**
 * <p>
 * 功能描述：
 * </p>
 *
 * @author cui haida
 * @date 2025/06/05/22:05
 */
@Data
@TableName("persons")
public class Person {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    // 逻辑删除字段 delval: 删除值，value：正常值
    @TableField(value = "logicDelete")
    @TableLogic(value = "0", delval = "1")
    private Integer logicDelete;
}
